package com.yuxi.controller.manager;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import com.yuxi.pubInter.exception.SkException;
import com.yuxi.pubInter.IBaseService;
import com.yuxi.pubInter.RestfulController;
import com.yuxi.dto.SysOperLogDTO;
import com.yuxi.dto.SysOperLogPageDTO;
import com.yuxi.modelExt.SysOperLogExt;
import com.yuxi.searchExt.SysOperLogSearchExt;
import com.yuxi.service.ISysOperLogService;
import com.yuxi.vo.SysOperLogDetailVO;
import com.yuxi.vo.SysOperLogListVO;
import com.yuxi.vo.SysOperLogDomainVO;
import com.yuxi.vo.SysOperLogDetailDomainVO;

import org.springframework.validation.annotation.Validated;
import java.util.Set;
import java.util.HashSet;
import com.yuxi.pubInter.exception.BusinessException;

/**
*    @author sunke
*    @Date 2023-10-13 10:28:19
*    @description SysOperLogController      操作日志记录
*/
@Api(tags = "后台管理系统-操作日志记录相关", description = "操作日志记录相关接口")
@RestController(value ="sysOperLogRestfulController")
@RequestMapping("/manager/sysOperLog/")
@Validated
public class SysOperLogController extends ApiManageController<SysOperLogDTO,SysOperLogPageDTO,SysOperLogExt, SysOperLogSearchExt,SysOperLogDomainVO,SysOperLogDetailDomainVO,SysOperLogDetailVO,SysOperLogListVO,String> {

	@Resource(name = "sysOperLogService")
	private ISysOperLogService sysOperLogService;



	@Override
	public IBaseService<SysOperLogExt, SysOperLogSearchExt,String> getBaseService() throws SkException {
		return sysOperLogService;
	}

	@Override
	public String getBaseRoute() {
		return "/manager/sysOperLog/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return "操作日志记录";
	}



	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(sys_oper_log.sol_id) as countNum");
		return totalMapSet;
	}


}